<template>
    <div class="container">
        <div class="container_elements">
            <div class="ghost">
                <div class="ghost_eyes"></div>
                <div class="ghost_dimples"></div>
                <div class="ghost_feet">
                    <div class="ghost__feet-foot"></div>
                    <div class="ghost__feet-foot"></div>
                    <div class="ghost__feet-foot"></div>
                    <div class="ghost__feet-foot"></div>
                </div>
            </div>
            <div class="shadow"></div>
        </div>
    </div>
</template>
<script setup lang="ts">

</script>
<style scoped>
* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .container {
        display: flex;
        height: 100vh;
        background:url('../../assets/bg.jpg') no-repeat;
        background-size: cover;
        justify-content: center;
        align-items: center;
    }

    .ghost {
        position: relative;
        width: 9.375rem;
        height: 225px;
        background-color: #fff;
        box-shadow: -17px 0px 0px #dbdbdb inset, 0 0 50px #5939db;
        border-radius: 100px 100px 0 0;
        animation: float 2s infinite;
    }

    .ghost_eyes {
        display: flex;
        justify-content: space-around;
        margin: 0 auto;
        padding: 70px 0 0;
        width: 90px;
        height: 20px;
    }

    .ghost_eyes:before,
    .ghost_eyes:after {
        content: "";
        display: block;
        width: 15px;
        height: 25px;
        background: #00034b;
        border-radius: 50%;
    }

    .ghost_dimples {
        display: flex;
        justify-content: space-around;
        margin: 0 auto;
        padding: 35px 0 0;
        width: 130px;
        height: 20px;
    }

    .ghost_dimples:before,
    .ghost_dimples:after {
        content: "";
        display: block;
        width: 15px;
        height: 15px;
        background: #ffbeff;
        border-radius: 50%;
    }

    .ghost_feet {
        width: 100%;
        position: absolute;
        bottom: -13px;
        display: flex;
        justify-content: space-between;
    }

    .ghost__feet-foot {
        width: 25%;
        background-color: #fff;
        height: 26px;
        border-radius: 50%;
    }

    ghost__feet-foot:last-child {
        background-image: linear-gradient(to right, #fff 55%, #dbdbdb 45%);

    }

    .shadow {
        background-color: #000232;
        width: 150px;
        height: 40px;
        margin-top: 50px;
        border-radius: 50%;
        animation: shadow 2s infinite;
    }

    @keyframes float {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-15px);
        }
    }

    @keyframes shadow {

        0%,
        100% {
            transform: scale(1);
        }

        50% {
            transform: scale(0.9);
        }
    }


   
</style>